<?php 

require_once './include_util.php';
session_start();

$result = null;
if (array_key_exists("submit", $_REQUEST)) {
	require_once '../lib/Methods.php';
	$method = GG_API_Methods::newMethodProfileNew();
	configApiMethod($method);
	$result = $method->call();
}

?>

<?php
	$tpl = array(
		"title" => "profile/new",
		"url" => "profileNew.php",
	);
	include './include_header.php';

	$captchaId = "a1b4d1115ec6a2c17d4190e6bb39926e";
	$captchaBaseUrl = "http://www.annonsera.se/captcha.html?captchaId=";
	$captchaUrl = $captchaBaseUrl . $captchaId;
?>
<form action="" method="POST">
	<table cellpadding="0" cellspacing="1">
		<?php include './include_formFieldsSettings.php'; ?>
		<?php include './include_formFieldsCaptcha.php'; ?>
		<tr>
			<td class="Label">email:</td>
			<td><input type="text" class="Input" name="email"
				value="2@e.com"/></td>
		</tr>
		<tr>
			<td class="Label">password:</td>
			<td><input type="text" class="Input" name="password"
				value="qwqwqw"/></td>
		</tr>
		<tr>
			<td class="Label">name:</td>
			<td><input type="text" class="Input" name="name"
				value="Randy"/></td>
		</tr>
		<tr>
			<td class="Label">address:</td>
			<td><input type="text" class="Input" name="address"
				value="12 Milk st."/></td>
		</tr>
		<tr>
			<td class="Label">type:</td>
			<td><select class="Input" name="type">
				<option value=""></option>
				<option value="person" selected>Person</option>
				<option value="company">Company</option>
			</select></td>
		</tr>
		<tr>
			<td class="Label">allowNotices:</td>
			<td><select class="Input" name="allowNotices">
				<option value=""></option>
				<option value="1" selected>Yes</option>
				<option value="0">No</option>
			</select></td>
		</tr>
		<tr>
			<td class="Label">&nbsp;</td>
			<td><input type="submit" class="Submit" name="submit" value="Call"/></td>
		</tr>
	</table>
</form>
<?php include './include_footer.php'; ?>
